package person.learn.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import person.learn.entity.Goods;

import java.util.List;
import java.util.Map;

/**
 * Created by barton on 16-1-29.
 */
public interface GoodsService {
    List<Goods> findAll();

    Goods save(Goods goods);

    Page<Goods> findAllPage(Map<String, Object> searchParam, Pageable pageable);

    Goods findOne(Long id);
}
